package com.jmu.bishe.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SellRentInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "SELL_RENT_INFO", schema = "HUANG")
public class SellRentInfo implements java.io.Serializable {

	private static final long serialVersionUID = 7835134086858718546L;
	private String sid;
	private String content;
	private Date recordDate;
	private String title;
	private String userId;

	// Constructors

	/** default constructor */
	public SellRentInfo() {
	}

	/** minimal constructor */
	public SellRentInfo(String sid) {
		this.sid = sid;
	}

	/** full constructor */
	public SellRentInfo(String sid, String content, Date recordDate,
			String title, String userId) {
		this.sid = sid;
		this.content = content;
		this.recordDate = recordDate;
		this.title = title;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@Column(name = "SID", unique = true, nullable = false, length = 20)
	public String getSid() {
		return this.sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	@Column(name = "CONTENT", length = 256)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "RECORD_DATE", length = 7)
	public Date getRecordDate() {
		return this.recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	@Column(name = "TITLE", length = 50)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "USER_ID", length = 20)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}